package com.example.mysdktest.activities;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.LinearLayout;

import com.example.mysdktest.R;
import com.example.mysdktest.base.BaseActivity;
import com.example.mysdktest.views.CarouselfigureView;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by baichuan on 2016/11/24.
 */

public class Test05 extends BaseActivity {

    private LinearLayout layout;
    private CarouselfigureView carousel;
    private ViewPager pager;
    private List<View> list = new ArrayList<>();

    @Override
    public int getLaout() {
        return R.layout.ac_test05;
    }

    @Override
    public void initView() {
        layout = (LinearLayout) findViewById(R.id.ac_test05_layout01);

        carousel = (CarouselfigureView) findViewById(R.id.ac_test05_carousel01);
        Bitmap bit;
        for (int i = 0; i < 4; i++) {
            bit = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
            carousel.addItem(bit);
        }
    }

    @Override
    public void initData() {

    }


    @Override
    public void initListener() {


    }

}
